// 路由配置

import { RoutingControllersOptions } from "routing-controllers";
import { dictToArray } from "./utils";
import * as controllers from 'app/controllers';
import * as interceptors from './interceptors'

// 路由配置
export const routingConfigs: RoutingControllersOptions = {
    controllers: dictToArray(controllers),   // 所有的控制器

    // 拦截器
    interceptors: dictToArray(interceptors),  // 所有的拦截器

    // 前缀
    routePrefix: '/api', 
    // 校验对象属性
    validation: true
}

